package com.community.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.community.entity.Right;
import com.community.entity.Role;

import java.util.List;

/**
 * (Role)表服务接口
 *
 * @author makejava
 * @since 2021-11-01 08:01:20
 */
public interface RoleService extends IService<Role> {

    //获取所有权限
    public List<Right> findAllRights();

    //获取用户-->角色-->权限
    public List<Right> findRightsByRole(Role role);
}

